<template>
  <div class="app-container">


    <!--任务数据-->

    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
      <el-form-item label="项目" prop="assignState">
        <el-select v-model="queryParams.projectId" placeholder="请选择项目" clearable style=" width:191px;"
          @change="handleProjectChange">
          <el-option v-for="project in projectList" :key="project.projectId" :label="project.projectName"
            :value="project.projectId" />
        </el-select>
      </el-form-item>
      <el-form-item label="任务名称" prop="taskName">
        <el-input v-model="queryParams.taskName" placeholder="请输入任务名称" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="任务进行状态" prop="runState">
        <el-select v-model="queryParams.runState" placeholder="请选择任务进行状态" clearable style=" width:191px;">
          <el-option v-for="dict in task_run_state" :key="dict.value" :label="dict.label" :value="dict.value" />
        </el-select>
      </el-form-item>
      <el-form-item label="指派人名字" prop="assignUserName">
        <el-input v-model="queryParams.assignUserName" placeholder="请输入指派人名字" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="指派状态" prop="assignState">
        <el-select v-model="queryParams.assignState" placeholder="请选择指派状态" clearable style=" width:191px;">
          <el-option v-for="dict in task_assign_state" :key="dict.value" :label="dict.label" :value="dict.value" />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="Plus" @click="handleAddMoudle"
          v-hasPermi="['system:dept:add']">新增模块</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" plain icon="Plus" @click="handleAddTask"
          v-hasPermi="['system:dept:add']">新增任务</el-button>
      </el-col>
      <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>


    <el-table row-key="taskId" border :data="infoList" :span-method="mergeCellsMethod" highlight-current-row>
      <el-table-column prop="moduleName" label="模块">
        <template #default="scope">
          <span>{{ scope.row.moduleName }}</span>
          <el-button link type="primary" icon="Plus" @click="handleAddTask(scope.row)"
            v-hasPermi="['task:info:edit']"></el-button>
          <el-button link type="primary" icon="Edit" @click="handleUpdateModel(scope.row)"
            v-hasPermi="['task:info:edit']"></el-button>
          <el-button link type="primary" icon="Delete" @click="handleDeleteModel(scope.row)"
            v-hasPermi="['task:info:remove']"></el-button>
        </template>
      </el-table-column>
      <el-table-column prop="taskName" label="任务"></el-table-column>
      <el-table-column prop="runState" label="状态" width="80">
        <template #default="scope">
          <el-button link type="primary" v-if="scope.row.runState == '0'"
            @click="handleStart(scope.row)">未开始</el-button>
          <el-button link type="primary" v-if="scope.row.runState == '1'"
            @click="handlePause(scope.row)">进行中</el-button>
          <el-button link type="primary" v-if="scope.row.runState == '2'" @click="handleStart(scope.row)">暂停</el-button>
          <span link type="primary" v-if="scope.row.runState == '3'">完成</span>
        </template>
      </el-table-column>
      <el-table-column prop="assignUserName" label="指派人" width="80"></el-table-column>
      <el-table-column prop="startTime" label="开始时间">
        <template #default="scope">
          <span>{{ parseTime(scope.row.startTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="endTime" label="结束时间">
        <template #default="scope">
          <span>{{ parseTime(scope.row.endTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="useTime" label="耗时" width="60">
        <template #default="scope">
          <span>{{ scope.row.useTime }}天</span>
        </template>
      </el-table-column>
      <el-table-column prop="do" label="操作">
        <template #default="scope">
          <el-button v-if="scope.row.taskId == null" link type="primary" icon="Plus" @click="handleAddTask(scope.row)"
            v-hasPermi="['task:info:add']"></el-button>
          <el-button v-if="scope.row.taskId != null" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
            v-hasPermi="['task:info:edit']"></el-button>
          <el-button v-if="scope.row.taskId != null" link type="primary" icon="Delete" @click="handleDelete(scope.row)"
            v-hasPermi="['task:info:remove']"></el-button>
          <el-button v-if="scope.row.taskId != null" link type="primary" @click="handleFinish(scope.row)"
            v-hasPermi="['task:info:edit']">完成</el-button>
          <el-button v-if="scope.row.taskId != null" link type="primary" @click="handleDuty(scope.row)"
            v-hasPermi="['task:info:edit']">日报</el-button>
        </template>
      </el-table-column>
    </el-table>


    <!-- 添加或修改任务列表对话框 -->
    <el-dialog :title="title" v-model="open" width="500px" append-to-body>
      <el-form ref="infoRef" :model="form" :rules="rules" label-width="100px">
        <el-row>
          <el-col :span="24">
            <el-form-item label="选择项目" prop="projectId">
              <el-select v-model="form.projectId" placeholder="请选择" clearable @change="handleProjectChangeTask">
                <el-option v-for="item in projectList" :key="item.projectId" :label="item.projectName"
                  :value="item.projectId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="项目模块" prop="module">
              <el-select v-model="form.moduleId" placeholder="请选择" clearable>
                <el-option v-for="item in moduleList" :key="item.moduleId" :label="item.moduleName"
                  :value="item.moduleId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="任务名称" prop="taskName">
              <el-input v-model="form.taskName" placeholder="请输入任务名称" />
            </el-form-item>
          </el-col>

          <el-col :span="24">
            <el-form-item label="任务信息" prop="taskInfo">
              <el-input v-model="form.taskInfo" placeholder="请输入任务信息" />
            </el-form-item>
          </el-col>

          <el-col :span="24">
            <el-form-item label="显示排序" prop="orderNum">
              <el-input-number v-model="form.orderNum" controls-position="right" :min="0" />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="指派人" prop="assignUserId">
              <span style="width: 70%;">{{ form.assignUserName }}</span>
              <el-button type="primary" icon="User" @click="handleOpenSelectUser">选择用户</el-button>
            </el-form-item>
          </el-col>

          <el-col :span="24">
            <el-form-item label="备注" prop="taskRemark">
              <el-input v-model="form.taskRemark" placeholder="请输入备注" />
            </el-form-item>
          </el-col>
        </el-row>

        <el-form-item label="图片显示列表" prop="taskImgList">
          <el-input v-model="form.taskImgList" placeholder="请输入图片显示列表" />
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </template>
    </el-dialog>

    <!-- 添加或修改模块dialog-->
    <el-dialog :title="moduleTitle" v-model="moduleOpen" width="500px" append-to-body>
      <el-form ref="moduleRef" :model="moduleForm" :rules="rules" label-width="100px">
        <el-row>
          <el-col :span="24">
            <el-form-item label="选择项目" prop="projectId">
              <el-select v-model="moduleForm.projectId" placeholder="请选择" clearable>
                <el-option v-for="item in projectList" :key="item.projectId" :label="item.projectName"
                  :value="item.projectId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="模块名称" prop="moduleName">
              <el-input v-model="moduleForm.moduleName" placeholder="请输入任务名称" />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="显示排序" prop="orderNum">
              <el-input-number v-model="moduleForm.orderNum" controls-position="right" :min="0" />
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitModuleForm">确 定</el-button>
          <el-button @click="cancelModule">取 消</el-button>
        </div>
      </template>
    </el-dialog>

    <!-- 选人dialog -->
    <el-dialog title="选择项目负责人" v-model="userOpen" width="500px" append-to-body>
      <el-table :data="userList" @row-click="handleSelectUser">
        <el-table-column label="id" align="center" prop="userId" />
        <el-table-column label="部门" align="center" prop="dept.deptName" />
        <el-table-column label="姓名" align="center" prop="nickName" />
      </el-table>
      <pagination v-show="user_total > 0" :total="user_total" v-model:page="userQueryParams.pageNum"
        v-model:limit="userQueryParams.pageSize" @pagination="getUserList" />
    </el-dialog>

    <!-- 日报dialog -->
    <el-dialog :title="dutyTitle" v-model="dutyOpen" width="500px" append-to-body>
      <el-form ref="dutyRef" :model="dutyFrom" :rules="rules" label-width="80px">
        <el-form-item label="日期时间" prop="dutyDate">
          <el-date-picker clearable v-model="dutyFrom.dutyDate" type="date" value-format="YYYY-MM-DD"
            placeholder="请选择日期时间">
          </el-date-picker>
        </el-form-item>

        <el-form-item label="人员" prop="assignUserId">
          <span style="width: 70%;color: #000;">{{ dutyFrom.userName }}</span>
        </el-form-item>

        <el-form-item label="项目" prop="projectId">
          <span style="width: 70%;">{{ dutyFrom.projectName }}</span>
        </el-form-item>

        <el-form-item label="项目模块" prop="module">
          <span style="width: 70%;">{{ dutyFrom.moduleName }}</span>
        </el-form-item>

        <el-form-item label="任务" prop="module">
          <span style="width: 70%;">{{ dutyFrom.taskName }}</span>
        </el-form-item>
        <el-form-item label="耗时" prop="useTime">
          <el-input v-model="dutyFrom.useTime" placeholder="请输入耗时(天)" />
        </el-form-item>
        <el-form-item label="详细信息" prop="remark">
          <el-input v-model="dutyFrom.remark" type="textarea" placeholder="请输入详细信息" />
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitDutyForm">确 定</el-button>
          <el-button @click="cancelDuty">取 消</el-button>
        </div>
      </template>
    </el-dialog>


  </div>
</template>

<script setup name="Info">
import { addDuty } from "@/api/task/duty";
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/task/info";
import { listModule, getModule, delModule, addModule, updateModule } from "@/api/task/module";
//
import { listProjectInfo } from "@/api/task/project";
import { listUser } from "@/api/system/user";
import { parseTime } from "@/utils/ruoyi";
const { proxy } = getCurrentInstance();
const { task_run_state, task_assign_state } = proxy.useDict('task_run_state', 'task_assign_state');

//
const projectList = ref([]);
let taskList = null;
//
const infoList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const title = ref("");
//
const isExpandAll = ref(true);
const refreshTable = ref(true);
//

//
const moduleList = ref([]);
const moduleOpen = ref(false);
const moduleTitle = ref("");


// 选择用户 user_total
const userList = ref([]);
const user_total = ref(0);
const userOpen = ref(false);

//日报
const dutyFrom = ref({
  dutyId: null,
  dutyDate: null,
  projectId: null,
  projectName: "",
  moduleId: null,
  moudleName: "",
  taskId: null,
  taskName: "",
  userId: null,
  userName: "",
  remark: null,
});
const dutyOpen = ref(false);
const dutyTitle = ref("新增日报");



const data = reactive({
  form: {},
  moduleForm: {},
  userQueryParams: {
    pageNum: 1,
    pageSize: 10,
  },
  queryParams: {
    projectId: null,
    pageNum: 1,
    pageSize: 10,
    taskName: null,
    runState: null,
    assignUserId: null,
    assignUserName: null,
    assignState: null,
    useTime: null,
  },
  rules: {
    useTime: [
      { required: true, message: "请输入耗时(天)", trigger: "blur" },
    ],
    remark: [
      { required: true, message: "请输入详细信息", trigger: "blur" },
    ]
  }
});

const { moduleForm, queryParams, userQueryParams, form, rules } = toRefs(data);


/** 展开/折叠操作 */
function toggleExpandAll() {
  refreshTable.value = false;
  isExpandAll.value = !isExpandAll.value;
  nextTick(() => {
    refreshTable.value = true;
  });
}
// 取消按钮
function cancel() {
  open.value = false;
  reset();
}

// 表单重置
function reset() {
  form.value = {
    taskId: null,
    taskName: null,
    parentId: null,
    taskInfo: null,
    orderNum: null,
    priority: null,
    taskImgList: null,
    taskRemark: null,
    runState: null,
    assignUserId: null,
    assignUserName: null,
    assignState: null,
    startTime: null,
    endTime: null,
    useTime: null,
    createTime: null,
    updateTime: null,
    createBy: null,
    updateBy: null,
    delFlag: null
  };
  proxy.resetForm("infoRef");
}

//重置日志表单
function resetDuty() {
  dutyFrom.value = {
    dutyId: null,
    dutyDate: null,
    projectId: null,
    projectName: "",
    moduleId: null,
    moudleName: "",
    taskId: null,
    taskName: "",
    userId: null,
    userName: "",
    remark: null,
  };
}

function resetModule() {
  moduleForm.value = {
    moduleId: null,
    moduleName: null,
    orderNum: 0,
    createTime: null,
    updateTime: null,
    createBy: null,
    updateBy: null,
    delFlag: null
  };
  proxy.resetForm("moduleRef");
}


/** 查询任务列表列表 */
function getList() {
  if (queryParams.value.projectId == null) {
    loading.value = false;
    return;
  }
  loading.value = true;

  listInfo(queryParams.value).then(response => {
    taskList = JSON.parse(JSON.stringify(response.data));
    console.log("==============copy===============");
    console.log(taskList);
    infoList.value = response.data;
    console.log("==============infoList===============");
    console.log(infoList);
    loading.value = false;

    //
    for (let i = 0; i < moduleList.value.length; i++) {
      for (let j = 0; j < infoList.value.length; j++) {
        if (moduleList.value[i].moduleId == infoList.value[j].moduleId) {
          moduleList.value[i].hasTask = true;
          break
        }
      }
    }
    console.log("==============moduleList===============");
    console.log(moduleList);

    for (let i = 0; i < moduleList.value.length; i++) {
      if (moduleList.value[i].hasTask == false) {
        let task = {
          projectId: moduleList.value[i].projectId,
          moduleId: moduleList.value[i].moduleId,
          moduleName: moduleList.value[i].moduleName,
          taskName: "待编辑",
        }
        console.log("modulenName========" + moduleList.value[i].moduleName);
        infoList.value.push(task);
      }
    }
    console.log("==============infoList===============");
    console.log(infoList);
  });
}

/** 搜索按钮操作 */
function handleQuery() {
  getProjectList(queryParams.value.projectId);
}

/** 重置按钮操作 */
function resetQuery() {
  proxy.resetForm("queryRef");
  handleQuery();
}

// 多选框选中数据
function handleProjectChange() {
  getProjectList(queryParams.value.projectId);
}

/** 新增按钮操作 */
function handleAddTask(row) {
  reset();
  open.value = true;
  title.value = "添加任务";
  form.value.projectId = row.projectId;
  form.value.moduleId = row.moduleId;
}



/** 修改按钮操作 */
function handleUpdate(row) {
  reset();
  listInfo().then(response => {
    taskOptions.value = buildTaskTree(response.data);
  });
  const _taskId = row.taskId || ids.value
  getInfo(_taskId).then(response => {
    form.value = response.data;
    open.value = true;
    title.value = "修改任务列表";
  });
}

/** 开始任务 */
function handleStart(row) {
  const _taskId = row.taskId || ids.value
  getInfo(_taskId).then(response => {
    form.value = response.data;

    if (form.value.assignUserId == null) {
      proxy.$modal.msgError("请先指派人员");
      reject(new Error('请先指派人员'));
    }

    form.value.runState = "1";
    form.value.startTime = parseTime(new Date());
  }).then(() => {
    updateInfo(form.value).then(response => {
      proxy.$modal.msgSuccess("开始成功");
      getList();
    });
  });
}
/** 暂停任务 */
function handlePause(row) {
  const _taskId = row.taskId || ids.value
  getInfo(_taskId).then(response => {
    form.value = response.data;
    if (form.value.runState == "0") {
      proxy.$modal.msgError("开始成功");
      reject(new Error('任务未开始，无法暂停'));
    }
    form.value.runState = "2";
  }).then(() => {
    updateInfo(form.value).then(response => {
      proxy.$modal.msgSuccess("暂停成功");
      getList();
    });
  });;
}

function handleFinish(row) {
  if (row.runState == "3") {
    proxy.$modal.msgError("任务已完成，请勿重复操作");
    return;
  }
  if (row.runState == "0") {
    proxy.$modal.msgError("任务未开始，无法完成");
    return;
  }
  const _taskId = row.taskId || ids.value
  proxy.$modal.confirm('是否确认完成这项任务？').then(function () {
    return getInfo(_taskId).then(response => {
      form.value = response.data;
      form.value.runState = "3";
      form.value.endTime = parseTime(new Date());
    })
  }).then(() => {
    updateInfo(form.value).then(response => {
      proxy.$modal.msgSuccess("任务完成成功");
      getList();
    });
  }).catch(() => { });
}




/** 提交按钮 */
function submitForm() {
  proxy.$refs["infoRef"].validate(valid => {
    if (valid) {
      if (form.value.taskId != null) {
        updateInfo(form.value).then(response => {
          proxy.$modal.msgSuccess("修改成功");
          open.value = false;
          //查询任务模块
          getModuleList(queryParams.value.projectId);
        });
      } else {
        addInfo(form.value).then(response => {
          proxy.$modal.msgSuccess("新增成功");
          open.value = false;
          //查询任务模块
          getModuleList(queryParams.value.projectId);
        });
      }
    }
  });
}

/** 删除按钮操作 */
function handleDelete(row) {
  const _taskIds = row.taskId || ids.value;
  proxy.$modal.confirm('是否确认删除任务列表编号为"' + _taskIds + '"的数据项？').then(function () {
    return delInfo(_taskIds);
  }).then(() => {
    getModuleList(queryParams.value.projectId);
    proxy.$modal.msgSuccess("删除成功");
  }).catch(() => { });
}

/** 导出按钮操作 */
function handleExport() {
  proxy.download('task/info/export', {
    ...queryParams.value
  }, `info_${new Date().getTime()}.xlsx`)
}


//========================日报===============================
function handleDuty(row) {
  dutyOpen.value = true;
  dutyFrom.value.projectId = row.projectId;
  dutyFrom.value.projectName = projectList.value.find(item => item.projectId == row.projectId).projectName;
  dutyFrom.value.moduleId = row.moduleId;
  dutyFrom.value.moduleName = row.moduleName;
  dutyFrom.value.taskId = row.taskId;
  dutyFrom.value.taskName = row.taskName;
  dutyFrom.value.userId = row.assignUserId;
  dutyFrom.value.userName = row.assignUserName;
  dutyFrom.value.dutyDate = parseTime(new Date());
  dutyTitle.value = "新增日报";

}

/** 提交日报按钮 */
function submitDutyForm() {
  proxy.$refs["dutyRef"].validate(valid => {
    if (valid) {
      addDuty(dutyFrom.value).then(response => {
        proxy.$modal.msgSuccess("新增成功");
        dutyOpen.value = false;
        getList();
      });
    }
  });
}

// 取消按钮
function cancelDuty() {
  dutyOpen.value = false;
  resetDuty();
}
//==========================================================
//项目选择
function getProjectList(projectId) {
  let projectQueryParams = {
    pageNum: 1,
    pageSize: 100,
    projectId: null,
  };

  console.log("projectId======", projectId);
  if (projectId != null && projectId != undefined) {
    projectQueryParams.projectId = projectId;
  }

  listProjectInfo(projectQueryParams).then(response => {
    projectList.value = response.rows;
    if (projectList.value.length == 0) {
      return;
    }
    //
    if (queryParams.value.projectId == null) {
      queryParams.value.projectId = projectList.value[0].projectId;
    }
    //查询任务模块
    getModuleList(queryParams.value.projectId);
  });
}

function handleProjectChangeTask() {
  getModuleList(form.projectId);
}


//==========================================================
/** 查询项目模块列表 */
function getModuleList(projectId) {
  let queryParams = {
    pageNum: 1,
    pageSize: 100,
    projectId: projectId,
  }
  listModule(queryParams).then(response => {
    moduleList.value = response.rows;
  }).then(() => {
    getList();
  });;
}

function submitModuleForm() {
  proxy.$refs["moduleRef"].validate(valid => {
    if (valid) {
      if (moduleForm.value.moduleId != null) {
        updateModule(moduleForm.value).then(response => {
          proxy.$modal.msgSuccess("修改成功");
          moduleOpen.value = false;
          getList();
        });
      } else {
        addModule(moduleForm.value).then(response => {
          proxy.$modal.msgSuccess("新增成功");
          moduleOpen.value = false;
          getList();
        });
      }
    }
  });
}
function handleAddMoudle() {
  resetModule();
  moduleOpen.value = true;
  moduleTitle.value = "添加项目模块";
}
function handleUpdateModel(row) {
  resetModule();
  getModule(row.moduleId).then(response => {
    moduleForm.value = response.data;
    moduleOpen.value = true;
    moduleTitle.value = "添加项目模块";
  });
}
function cancelModule() {
  resetModule();
  moduleOpen.value = false;
}

/** 删除按钮操作 */
function handleDeleteModel(row) {
  proxy.$modal.confirm('是否确认删除任务列表编号为"' + row.moduleName + '"的数据项？').then(function () {
    return delModule(row.moduleId);
  }).then(() => {
    proxy.$modal.msgSuccess("删除成功");
    getModuleList(queryParams.value.projectId);
  }).catch(() => { });
}




//==========================================================
/** 查询用户列表 */
function getUserList() {
  listUser(proxy.addDateRange(userQueryParams.value)).then(res => {
    userList.value = res.rows;
    user_total.value = res.total;
  });
};

function handleOpenSelectUser() {
  userOpen.value = true;
  getUserList();
};


function handleSelectUser(row) {
  userOpen.value = false;
  console.log(row);
  form.value.assignUserId = row.userId;
  form.value.assignUserName = row.nickName;
  form.value.assignState = "1";
};


//
getProjectList();


function mergeCellsMethod({ row, column, rowIndex }) {
  // 根据行id进行合并，这样不会导致上下数据相同但id不同时会合并错误的问题
  switch (column.property) {
    case 'moduleName':
      return setTableRowCol(row, rowIndex, ['moduleId', 'moduleName'])
    default:
      break
  }
}
function setTableRowCol(row, rowIndex, keys) {
  let firstIndex = 0
  let rowspan = 1
  let colspan = 1
  // 找到需要合并的行的下标
  firstIndex = infoList.value.findIndex((item) => {
    return filterSameKeys(item, row, keys)
  })
  if (rowIndex === firstIndex) {
    // 需要合并的行数
    rowspan = infoList.value.filter((item) => {
      return filterSameKeys(item, row, keys)
    }).length
    colspan = 1
  } else {
    // 被合并的行需要设置成0
    rowspan = 0
    colspan = 0
  }
  return {
    rowspan,
    colspan
  }
}

// 根据keys数组所有字段去做合并
function filterSameKeys(item, row, keys) {
  let flag = true
  keys.forEach((key) => {
    flag = flag && item[key] === row[key]
  })
  return flag
}

</script>

<style scoped lang="scss">
.custom-tree-node {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding-right: 8px;
}

//  注意！！！！处理hover样式不加scoped才能生效
.el-table .table-hover-row {
  background: #e0f3ff !important;
}

.el-table tbody tr:hover>td {
  background-color: #e0f3ff !important;
}
</style>
